<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class ProductsChildren extends Model
{
    use HasFactory;

    protected $table = 'products_children';
    protected $fillable = ['number', 'product_id', 'name', 'icon_url', 'introduction', 'applicable_fields', 'certificate', 'application_scenarios', 'parameter_name', 'parameter_img_url', 'applicable_parts', 'storage', 'packing', 'name_en', 'introduction_en', 'applicable_fields_en', 'certificate_en', 'parameter_name_en', 'applicable_parts_en', 'storage_en', 'packing_en',];


    public function products()
    {
        return $this->belongsTo(Products::class, 'product_id', 'id');
    }
}
